package com.tanhua.dubbointerface.api;

import com.tanhua.model.mongo.Comment;
import com.tanhua.model.utills.CommentType;

import java.util.List;

public interface CommentApi {

    Integer save(Comment comment,String movementId);



    Integer delete(Comment comment, String id);

    boolean hasComment(String id, Long userId, CommentType like);

    List<Comment> findByPublishId(String valid, int type, int page, int pagesize);

    Integer deleteCommentLike(Comment comment, String id);

    Integer saveCommentLike(Comment comment, String id);
}